package health.lm.com.find.presenter;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.find.activity.MerchantsActivity;
import health.lm.com.find.entity.MerchantsEntity;
import health.lm.com.find.model.ExperienceModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * @author GQI
 * @description: 商家详情
 * @date :2019-08-15 15:39
 */
public class MerchantsPresenter extends XPresent<MerchantsActivity> {
    public void getData(String id){
        ExperienceModel.getInstance().merchants(id, new SimpleCallBack<MerchantsEntity>() {
            @Override
            public void onSuccess(MerchantsEntity entity) {
                if (hasV()){
                    getV().getDataSuccess(entity);
                }
            }
        });

    }
}
